<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>hello</title>
</head>
<body>

<div id="app">
    <input v-model="haha"/>
</div>
<script src="./node_modules/vue/dist/vue.js"></script>
<script type="text/javascript">
    var vm = new Vue({
        el:"#app",
        data:{
            haha:"hello"
        },
        watch:{
            haha(newVal){
               window.location.href="http://www.baidu.com?param="+newVal;
            }
        }


    })
</script>


</body>
</html>